package com.java.tutorials.designpattern.behavioral.visitor;

/**
 * Created by xuzhike on 2016/3/13.
 */
//轮胎类：
public class Wheel {
    private String name;
    Wheel(String name){
        this.name = name;
    }
    String getName(){
        return this.name;
    }
    void accept(Visitor visitor){
        visitor.visit(this);
    }
}
